import request from '@/utils/request'

// 查询供应站列表
export function listSc(query) {
  return request({
    url: '/sc/sc/list',
    method: 'get',
    params: query
  })
}
export function listScNoPage(query) {
  return request({
    url: '/sc/sc/listNoPage',
    method: 'get',
    params: query
  })
}
// 查询供应站详细
export function getSc(id) {
  return request({
    url: '/sc/sc/' + id,
    method: 'get'
  })
}

// 新增供应站
export function addSc(data) {
  return request({
    url: '/sc/sc',
    method: 'post',
    data: data
  })
}

// 修改供应站
export function updateSc(data) {
  return request({
    url: '/sc/sc',
    method: 'put',
    data: data
  })
}

// 删除供应站
export function delSc(id) {
  return request({
    url: '/sc/sc/' + id,
    method: 'delete'
  })
}
